    <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('表信息')" />
    <th:block th:include="include :: bootstrap-select-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-interface-edit" th:object="${page}">
            <h4 class="form-header h4">页面信息</h4>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">页面名称：</label>
                <div class="col-sm-8">
                    <input name="pageName" th:field="*{pageName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">页面描述：</label>
                <div class="col-sm-8">
                    <input name="pageDescription" th:field="*{pageDescription}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">页面接口：</label>
                <div class="col-sm-8">
                    <select name="interfaceId" id="interfaceId" class="form-control selectpicker" multiple data-live-search="true" title="请选择">
                        <option th:each="interfaceInfo : ${interfaceInfoList}" th:text="${interfaceInfo.interfaceName}" th:value="${interfaceInfo.id}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否模块聚合页：</label>
                <div class="col-sm-8">
                    <select name="isModuleAggregation" class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{isModuleAggregation}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否风险点：</label>
                <div class="col-sm-8">
                    <select name="isRask" class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{isRask}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">终端类型：</label>
                <div class="col-sm-8">
                    <select name="terminalType" class="form-control m-b" th:with="type=${@dict.getType('terminalType')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{terminalType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">分类名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" id="categoryName" th:value="${category.categoryName}" readonly="true">
                </div>
            </div>

            <h4 class="form-header h4">表信息</h4>
            <div class="row">
                <div class="col-sm-12">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="bootstrap-table" style="table-layout:fixed;"></table>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: bootstrap-select-js" />
    <script th:inline="javascript">
        var interfaceIds = [[${interfaceIds}]];

        $(function() {
            $('#interfaceId').selectpicker('val', interfaceIds);
            var options = {
                data: [[${tableList}]] || [],
                pagination: false,
                showSearch: false,
                showRefresh: false,
                showToggle: false,
                showColumns: false,
                sidePagination: "client",
                fixedColumns: true,
                fixedNumber: 4,
                columns: [{
                    field: 'tableName',
                    title: '表名称'
                },
                {
                    field: 'tableEnName',
                    title: '表英文名称'
                },
                {
                    field: 'tableDescription',
                    title: '表说明'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>